//
//  JCEventBinding.h
//  JCSDK
//
//  Created by master on 16/3/17.
//  Copyright © 2016年 AdMaster. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "JCObjectSelector.h"
@interface JCEventBinding : NSObject  <NSCoding>

@property (nonatomic) NSUInteger ID;

@property (nonatomic) NSInteger control_event;
@property (nonatomic, copy) NSString *eventName;
@property (nonatomic) NSString *name;
@property (nonatomic, strong) JCObjectSelector *path;

@property (nonatomic, assign)Class swizzleClass;

@property (nonatomic) BOOL running;
+ (JCEventBinding *)bindingWithJSONObject:(id)object;


+ (NSString *)typeName;

- (instancetype)init __unavailable;
- (instancetype)initWithEventName:(NSString *)eventName onPath:(NSString *)path;
+ (void)track:(NSString *)event properties:(NSDictionary *)properties;

- (void)execute;
- (void)stop;


@end
